﻿using System;
using System.Data;
using System.Data.SqlClient;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace TM.Weixin.MP.Tests
{
    using Commons.Extensions;

    [TestClass]
    public class UnitTest1
    {
        private readonly string SysDb;
        private readonly string TestDb;
        private readonly string ConnString;

        public UnitTest1()
        {
            ConnString = "data source={0};initial catalog={1};persist security info=True;user id={2};password={3};multipleactiveresultsets=True;";
            SysDb = string.Format(ConnString, "192.168.0.3,1834", "century2009", "sa", "Cjnet18987");
            TestDb = string.Format(ConnString, "192.168.0.191,1833", "century2009-20140307", "sa", "cjnetserver");
        }

        [TestMethod]
        public void TestMethod1()
        {
            double price = 0.565;

            Console.Write(price.ToString("F"));
        }

    }
    class Package
    {
        public string Id { get; set; }
        public DateTime Start { get; set; }
    }
}
